package cn.changeforyou.generator.terminal;

import cn.changeforyou.generator.db.mybatisPlus.MybatisPlusApplication;
import java.util.List;
import java.util.Scanner;

/**
 * @author zhyu
 * @date 2021/1/30 14:39
 */
public class Application {

    public static void main(String[] args) {
        System.out.println("终端命令行程序开始启动....... .........");
        TerminalApplication application = new MybatisPlusApplication();
        System.out.println("程序名称: " + application.getName());
        final List<TerminalModel> terminalModels =  application.getModels();
        application.start();
        Thread thread = new Thread(() -> {
            Scanner sc = new Scanner(System.in);
            for (TerminalModel model : terminalModels) {
                System.out.println("请输出参数: " + model.getWord());
                String s = sc.nextLine();
                model.setValue(s);
            }
        });
    }
}
